public class PetDog {
    public String name;
    public String color;
    public int age;

    public void barks(){
        System.out.println(name+ ":汪汪汪");
    }

    public void wag(){
        System.out.println(name+ ":摇尾巴");
    }


    public static void main(String[] args) {
        PetDog petDog = new PetDog();
        petDog.name = "xxx";
        petDog.color = "黄色";
        petDog.age = 10;
        petDog.barks();
        petDog.wag();
    }
}